Launch a third-party apk app from Android apkWe are in the development, often encounter in an apk to run another apk, just like our windows, to make a shortcut like, how to do it?The core of the problem is that we have to get the third-party
)Application name Get method: Packagemanager.getapplicationlabel (ApplicationInfo)Access method using permissions: Packagemanager.getpackageinfo (packagename,packagemanager.get_permissions). requestedpermissionsGet the specific information method by ResolveInfo:Package name Get method: Resolve.activityInfo.packageNameIcon Get Get Method: Resolve.loadicon (Packagemanager)App Name Get method: Resolve.loadlabel (Packagemanager). ToString ()"
Shareitem.setlabel (Resolve.loadlabel (Pmanager). toString ());
Set Package Name
Shareitem.setpackagename (Resolve.activityInfo.packageName);
}
Summarize:Get the specific information method by PackageInfo:Package name Get method: Packageinfo.packagenameIcon Get Get Method: Packagemanager.getapplicationicon (ApplicationInfo)Application name Get method: Packagemanager.getapplicationlabel (ApplicationInfo)Access method using permissions: Packagemanager.getpackageinfo (packagenam
[Original article: www.pconline.com.cnpcedu3316357549.html] many Android users have the habit of deleting the Apk installation package after installing the App. If the App is installed through the Play store, the Apk installation package cannot be found. If you want to share
related resource file, Smali is the Smali assembly file;3. recompileRecompile command format :./apktool b apk Source directory apk file name;-- Execute command :./apktool b wheelview wheelview1.apk, wheelview1.apk file can be generated;[Email protected]:~/decompiler/linux/apktool$ lsaapt apktool apktool.jar wheelvi
Preface
Android dynamic loading (bottom) -- load the classes and resources in the installed APK.
StatementWelcome to repost, but please keep the original source of the article :) blog Park: http://www.cnblogs.com farmer UNCLE: http://over140.cnblogs.com
Android Chinese Wiki: http://wikidroid.sinaapp.com
Body
I. Objectives
Note that the called
Body
I. Objectives
Note that the called APK has been installed in the Android system.
Previous Article: Android app development enhancement series (4) -- Android dynamic loading (on) -- loading classes in APK Not Installed
Call an
Through the introduction of the official article of the previous translation we have a preliminary impression of Sencha, and we have also generated the first sample application code framework through the wizard, so the next step may be that many people feel that you should look at the details of how an app is built, based on what the wizard suggests. But I think we can change the path of learning.Heaven Zhuhai The rudder is a relatively quick buck, so
apps with the same signature that can access and share the app. Signatureorsystem means that the app in the system image and the app with the same signature can access and share the app, and Google recommends not to use this option, because the signature is sufficient, and generally this license is used in the case of
Sencha Study Notes 2: package your first Sencha Android app apk installation package, senchaapk
We have a preliminary impression on sencha through the introduction in the previous translation official Article. At the same time, we also generated the first sample application code framework through this wizard, many people may think that the next step should be bas
More and more developers are keen to use Html5+javascript to develop mobile web apps. However, whether the advent of HTML5 Web apps will replace mobile applications in the future is still unknown. On the one hand, users in the use of habits, do not like to enter complex URLs on the browser, on the other hand, HTML5 Web App stored on the server side, in each use of the need for data transfer, resulting in a waste of traffic. Some developers do not want
apps with the same signature that can access and share the app. Signatureorsystem means that the app in the system image and the app with the same signature can access and share the app, and Google recommends not to use this option, because the signature is sufficient, and generally this license is used in the case of
the uncompressed data in the APK file to be aligned on a 4-byte boundary (4 bytes is a well-performing value) so that the Android system can read the file using the Mmap () function (see the purpose of the function itself) to get higher performance on read resources ,Ps:1. Alignment on a 4-byte boundary means that, in general, the compiler bar 4 bytes are read as a unit, so that the CPU can access the vari
Android development package the project into an apk, Android to the mobile phone, or submit it to the app Store, androidapk#1. It is easy to export an app using Eclipse. Let's take a look at my steps. Images and truth
Select a project
Create a new one with a random
View Android App (APK) signatureThis address: Http://blog.csdn.net/caroline_wendyWhen registering apps on Weibo and open platforms , you'll need to fill out an app (apk) signature and use the Keytool tool to find the signature of your signed
uncompressed data in the APK file on the 4-byte boundary (4 bytes are a good value), so that the Android system can use MMAP () (please check the purpose of this function) function reading files can achieve high performance in reading resources,PS: 1. alignment on the boundary of four bytes means that, in general, it refers to the result that the compiler reads four bytes as a unit. In this case, the CPU c
using zipalign.exe (in the android-sdk-windows \ tools directory) to optimize it:Copy codeAs shown above, zipalign can align uncompressed data in the apk file on the 4-byte boundary (4 bytes are a good value), so that the android system can use mmap () (please check the purpose of this function) function reading files can achieve high performance in reading reso
in fact, an APK file is a. zip format of the compressed package, we can use the decompression tool to open any APK file, due to code obfuscation and encryption, the normal decompression tool to open the inside of the file or directory will see a variety of garbled characters. A typical APK file contains the following content:? Androidmanifest.xmlThe
the APK file on the 4-byte boundary (4 bytes are a good value), so that the Android system can use MMAP () (please check the purpose of this function) function reading files can achieve high performance in reading resources,PS: 1. alignment on the boundary of four bytes means that, in general, it refers to the result that the compiler reads four bytes as a unit. In this case, the CPU can perform efficient
See good technical tutorials just want to reprint, do not like to spray! Thanks for the cooperation, only for rookie study study, do not do bad oh \ (^o^)/~ Transferred from: http://www.jizhuomi.com/android/environment/232.html The built-in Android app apk file is best optimized because the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.